/* logs.html */

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
}

h2 {
    color: #4CAF50;
}

.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.line-container {
    display: flex;
    align-items: center;
    margin: 10px 0;
    gap: 10px;
    justify-content: space-between;
}

.icon-image {
    height: 35px;
    width: auto;
    vertical-align: middle;
    cursor: pointer;
}

.sidebar {
    width: 250px;
    background-color: #fff;
    padding: 20px;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    z-index: 10;
    transition: left 0.3s ease,background-color 0.5s;
    position: relative;
}

.sidebar h2 {
    text-align: center;
    color: #4CAF50;
    margin-bottom: 20px;
}

.file-list {
    list-style-type: none;
    padding: 0;
}

.file-list li {
    margin: 10px 0;
    padding: 5px;
    background-color: #f9f9f9;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
}

.file-list li:hover {
    background-color: #4CAF50;
}

.file-list li.selected {
    background-color: #218838;
    color: white;
}

.content {
    flex: 1;
    background-color: white;
    padding: 20px;
    overflow-y: auto;
    transition: background-color 0.5s;
}

.content pre {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.6;
}

.error-line {
    color: red;
}

/* 在小屏幕下隐藏文件列表 */
@media screen and (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        /* 默认隐藏 */
        bottom: 0;
        z-index: 10;
    }

    .sidebar.open {
        left: 0;
        /* 滑出 */
    }

    #toggleButton {
        display: block;
    }
}

/* 切换按钮样式 */
#toggleButton {
    display: none;
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #4CAF50;
    color: white;
    border: none;
    /* 圆形按钮 */
    /* border-radius: 50%; */
    text-align: right;
    line-height: 40px;
    font-size: 20px;
    cursor: pointer;
    z-index: 20;
}

#toggleButton:hover {
    background-color: #45a049;
}

/* 更改箭头样式 */
#toggleButton.open {
    left: 250px;
    /* 向右滑动显示按钮 */
}

body.dark-mode {
    background-color: #333;
    color: #ffffffd6;
}

body.dark-mode .sidebar {
    background-color: #333;
    border-right: 1px solid #555555;
}

body.dark-mode .content {
    background-color: #333;
}

body.dark-mode .content pre {
    background-color: #555555;
}

body.dark-mode .error-line {
    color: #ffff99d6;
}

body.dark-mode .file-list li {
    background-color: #555555;
}

body.dark-mode .file-list li:hover {
    background-color: #4CAF50;
}

body.dark-mode .file-list li.selected {
    background-color: #218838;
    color: white;
}